package com.eshop.we;

import com.alibaba.dubbo.spring.boot.annotation.EnableDubboConfiguration;
import com.baomidou.mybatisplus.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableDubboConfiguration
@EnableTransactionManagement
@MapperScan("com.eshop.we.mapper")
public class DubboApplication{
	public static void main(String[] args) {
		SpringApplication.run(DubboApplication.class, args);
	}

	/**
	 * 分页插件
	 */
	@Bean
	public PaginationInterceptor paginationInterceptor() {
		return new PaginationInterceptor();
	}
}
